package com.ruoyi.puyu.mapper;

import com.ruoyi.puyu.domain.PuyuPointsRule;

import java.util.List;

/**
 * 积分规则Mapper接口
 * 
 * @author wusongwen
 * @date 2024-12-25
 */
public interface PuyuPointsRuleMapper 
{
    /**
     * 查询积分规则
     * 
     * @param ruleId 积分规则主键
     * @return 积分规则
     */
    public PuyuPointsRule selectPuyuPointsRuleByRuleId(Long ruleId);

    /**
     * 查询积分规则最新一条记录
     * @return 积分规则
     */
    public PuyuPointsRule selectPuyuPointsRuleLatest();

    /**
     * 查询积分规则列表
     * 
     * @param puyuPointsRule 积分规则
     * @return 积分规则集合
     */
    public List<PuyuPointsRule> selectPuyuPointsRuleList(PuyuPointsRule puyuPointsRule);

    /**
     * 新增积分规则
     * 
     * @param puyuPointsRule 积分规则
     * @return 结果
     */
    public int insertPuyuPointsRule(PuyuPointsRule puyuPointsRule);

    /**
     * 修改积分规则
     * 
     * @param puyuPointsRule 积分规则
     * @return 结果
     */
    public int updatePuyuPointsRule(PuyuPointsRule puyuPointsRule);

    /**
     * 删除积分规则
     * 
     * @param ruleId 积分规则主键
     * @return 结果
     */
    public int deletePuyuPointsRuleByRuleId(Long ruleId);

    /**
     * 批量删除积分规则
     * 
     * @param ruleIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePuyuPointsRuleByRuleIds(Long[] ruleIds);
}
